package com.google.code.jdbexport.datatypeconverter.oracle;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

import com.google.code.jdbexport.datatypeconverter.AbstractJDBExportFormat;



public class JDBExportOracleTimestampFormat extends AbstractJDBExportFormat<Timestamp> {
	  
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
  
	public JDBExportOracleTimestampFormat(Timestamp timestamp) {
		super(timestamp);
	}

	@Override
	protected String buildSQL() {
		// oracle  
	return "to_timestamp('" + format.format( getValue() ) + "','" + "YYYY-MM-DD HH24:MI:SS.FF9'" + ")";  
	}
	  
}

